﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_ProductDetail.ascx.cs"
    Inherits="Stationery.UC.UC_ProductDetail" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dxdv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dxrp" %>
<%@ Register Assembly="DevExpress.Web.ASPxScheduler.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxScheduler" TagPrefix="dxwschs" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<table width="100%">
    <tr>
        <td>
            <table cellpadding="0" cellspacing="2" style="vertical-align: top; width: 100%;">
                <tr>
                    <td valign="top" width="238px">
                        <table cellpadding="0" cellspacing="0" width="238px">
                            <tr>
                                <td class="grpProduct_detail_top">
                                </td>
                            </tr>
                            <tr>
                                <td class="grpProduct_detail_center" align="center" valign="middle">
                                    <div class="ImgProduct_detail_div">
                                        <asp:Image ID="ImageButton1" runat="server" Height="140px" Width="150px" /></div>
                                </td>
                            </tr>
                            <tr>
                                <td class="grpProduct_detail_bottom">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-top: 4px;" align="center">
                                    <table cellpadding="0" cellspacing="2">
                                        <tr>
                                            <td>
                                                <asp:LinkButton ID="AspLinkButtonContinue" runat="server" OnClick="ASPxButtonFastCart_Click"><img src="Image/Button/btn_fastorder_detail.png" /></asp:LinkButton>
                                            </td>
                                            <td>
                                                <asp:LinkButton ID="AspLinkButtonCart" runat="server" OnClick="ASPxButtonCart_Click"><img src="Image/Button/btn_cart.png" /></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top">
                        <table style="margin-left: 5px; vertical-align: text-top;" cellspacing="2" cellpadding="4">
                            <tr>
                                <td>
                                    Tên sản phẩm:
                                    <asp:Label ID="LabelName" runat="server" CssClass="lblProduct_title"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Đơn giá: <a class="price_color">
                                        <asp:Label ID="LabelPrice" runat="server" Text="Label"></asp:Label></a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Tên gọi khác:
                                    <asp:Label ID="LabelOtherName" runat="server" CssClass="lblProduct_title"></asp:Label>
                                </td>
                            </tr>
                            <%--                            <tr>
                                <td>
                                    Nguồn gốc:
                                    <asp:Label ID="LabelOrigin" runat="server" CssClass="lblProduct_title"></asp:Label>
                                </td>
                            </tr>--%>
                            <%--                           <tr>
                                <td>
                                    Thời gian bảo quản:
                                    <asp:Label ID="LabelStorageTime" runat="server" CssClass="lblProduct_title"></asp:Label>
                                </td>
                            </tr>--%>
                            <%--                            <tr>
                                <td>
                                    Giảm giá:
                                    <asp:Label ID="LabelSALE" runat="server" CssClass="price_color"></asp:Label>
                                </td>
                            </tr>--%>
                            <tr>
                                <td>
                                    Định lượng:
                                    <asp:Label ID="LabelWeight" runat="server" CssClass="price_color"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Tình trạng:
                                    <asp:Label ID="LabelStat" runat="server" CssClass="price_color"></asp:Label>
                                </td>
                            </tr>
                            <tr style="vertical-align: text-top;">
                                <td style="height: 60px; vertical-align: text-top; overflow: hidden; background-image: url('../Image/Common/vach_price.jpg');
                                    background-repeat: repeat-x; padding-top: 6px;">
                                    <a>Mô tả:
                                        <div style="word-wrap: break-word; width: 310px; text-align: justify; overflow: hidden;
                                            font-size: 8pt; color: #3F3F3F; padding-top: 2px;">
                                            <asp:Label ID="LabelDescription" runat="server" Text="Mô tả sơ lược sản phẩm" CssClass="lblProduct_descr"></asp:Label></div>
                                    </a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td style="background-image: url('../Image/Background/rpHeaderBackground.gif'); background-repeat: repeat-X;
            height: 20px; border-width: 1px; border-style: solid; border-color: #a4cc9c;">
            <span style="font-weight: bold; color: #0a3c00;">SẢN PHẨM CÙNG LOẠI</span>
        </td>
    </tr>
    <tr>
        <td>
            <%--            <dxrp:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" Width="100%" HeaderText="SẢN PHẨM CÙNG LOẠI"
                Font-Bold="True">
                <PanelCollection>
                    <dxp:PanelContent ID="PanelContent1" runat="server">--%>
            <dxdv:ASPxDataView ID="ASPxDataViewProduct" runat="server" AllowPaging="False" Border-BorderStyle="None"
                ColumnCount="2" EnableCallbackCompression="False" EnableTheming="True">
                <EmptyDataStyle>
                    <Border BorderStyle="None" />
                </EmptyDataStyle>
                <ContentStyle>
                    <BorderTop BorderStyle="None" />
                    <BorderBottom BorderStyle="None" />
                    <Paddings Padding="0" />
                </ContentStyle>
                <Border BorderStyle="None" />
                <EmptyItemStyle>
                    <Border BorderStyle="None" />
                </EmptyItemStyle>
                <ItemStyle Height="30" Paddings-PaddingLeft="5" Paddings-PaddingRight="2" Paddings-PaddingTop="4"
                    Width="300" Wrap="True">
                    <Paddings PaddingBottom="5px" PaddingLeft="5px" PaddingRight="2px" />
                    <Border BorderColor="#c3fbcb" BorderStyle="Solid" BorderWidth="1px" />
                </ItemStyle>
                <ItemTemplate>
                    <table cellpadding="0" cellspacing="0" style="vertical-align: top; width: 100%;">
                        <tr>
                            <td valign="top" width="100px;">
                                <a href='<%# GetLinkDetail(Eval("ID")) %>'>
                                    <div class="ImgProduct_div">
                                        <asp:Image ID="ImageButton2" runat="server" Height="100px" ImageUrl='<%# Eval("IMAGE_DIRECTORY") %>'
                                            Width="100%" /></div>
                                </a>
                            </td>
                            <td valign="top" align="left">
                                <table cellspacing="2" style="margin-left: 1px; vertical-align: text-top; width: 100%;
                                    table-layout: fixed;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="LabelName0" runat="server" CssClass="lblProduct_title" Text='<%# Eval("NAME") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <a class="StatusStock" style='color: <%# GetColorStatus(Eval("STAT_STOCK")) %>'>
                                                <%# GetStatusStore(Eval("STAT_STOCK"))%></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 55px; vertical-align: text-top; overflow: hidden; width: 50px">
                                            <div style="word-wrap: break-word; width: 100%; text-align: justify; overflow: hidden;
                                                height: 55px; font-size: 8pt; color: #3F3F3F;">
                                                <%--<%#Eval("DESCRIPTION")%>--%></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 100%; vertical-align: text-bottom;">
                                            <a class="price_color">Đơn giá:
                                                <asp:Label ID="LabelPrice0" runat="server" Text='<%# Eval("PRICE","{0:### ### ###}") %>'></asp:Label>
                                                VNĐ</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 100%; vertical-align: text-bottom; padding-top: 2px;">
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:LinkButton ID="ASPxButtonFastCart" runat="server" CommandArgument='<%# Eval("ID") %>' Visible='<%# GetVisibleStatus(Eval("STAT_STOCK")) %>'
                                                            OnClick="ASPxButtonFastCart_Click"><img src="Image/Button/btn_fastorder.png" /></asp:LinkButton>
                                                    </td>
                                                    <td style="padding-left: 1px;">
                                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("ID") %>' Visible='<%# GetVisibleStatus(Eval("STAT_STOCK")) %>'
                                                            OnClick="ASPxButtonCart_Click"><img src="Image/Button/btn_order.png" /></asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
                <Paddings Padding="0px" />
                <PagerSettings Position="Bottom">
                </PagerSettings>
            </dxdv:ASPxDataView>
            &nbsp;
        </td>
    </tr>
</table>
<%--<dxpc:ASPxPopupControl ID="ASPxPopupControl1" runat="server" PopupAction="MouseOver"
    PopupElementID="ImageButton1" CloseAction="MouseOut">
    <ContentCollection>
        <dxpc:PopupControlContentControl runat="server">
        </dxpc:PopupControlContentControl>
    </ContentCollection>
    <HeaderStyle Font-Bold="True" Font-Size="12pt" HorizontalAlign="Center" />
    <Windows>
        <dxpc:PopupWindow AutoUpdatePosition="True" PopupElementID="ImageButton1">
            <ContentCollection>
                <dxpc:PopupControlContentControl runat="server">
                    <dxe:ASPxImage ID="ASPxImage1" runat="server" Height="300" Width="400">
                    </dxe:ASPxImage>
                </dxpc:PopupControlContentControl>
            </ContentCollection>
        </dxpc:PopupWindow>
    </Windows>
</dxpc:ASPxPopupControl>--%>
